﻿using System;
using System.ComponentModel.Composition;
using ASPItalia.ModelVirtualCasting.Common;

namespace ASPItalia.ModelVirtualCasting.Parts
{
    internal class JobTypeRepositoryPart : IRepositoryPart<IJobTypeRepository>
    {
        public JobTypeRepositoryPart()
        {
        }

        [Import(
            "JobTypeRepository",
            typeof(IJobTypeRepository),
            RequiredCreationPolicy = CreationPolicy.NonShared,
            AllowDefault = false,
            AllowRecomposition = false)]
        public Lazy<IJobTypeRepository, IRepositoryMetadata> Repository { get; set; }
    }
}
